package com.ceb.proxy;

import com.ceb.service.UserService;
import com.ceb.service.UserServiceImpl;

/**
 * @author name:dss
 * @version 1.0
 * @description: TODO
 * @date 2022/8/232022/8/23
 */
public class UserServiceProxy implements UserService {

    private UserServiceImpl userService;
    public UserServiceProxy(UserServiceImpl userService){
        this.userService=userService;
    }

    public void add() {
        System.out.println("【日志】执⾏了add⽅法");
        userService.add();
        System.out.println("【日志】执⾏add⽅法结束");
    }

    public void select() {
        System.out.println("【日志】执⾏了select⽅法");
        userService.select();
        System.out.println("【日志】执⾏select⽅法结束");
    }
}
